package com.itheima.spring.bestpractive.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @version 1.0
 * @author: HZY
 * @date: 2025/7/7 17:08
 * @Content:
 */
@Data
public class Announcement {
    @Schema(description = "公告编号")
    private long id;
    @Schema(description = "发布人")
    private long empId;
    @Schema(description = "发布内容")
    private String content;
    @Schema(description = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
